<script setup lang="ts">
import { useAppStore } from '@/store/index';
import API from '@/api';
import { loginParamType } from '@/api/type';

const appStore = useAppStore();
console.log(appStore.skipLogin);

const handleLogin = async () => {
	const params: loginParamType = {
		account: '123456',
		password: '123',
	};
	const { data } = await API.loginApi(params);
	console.log(data);
};
</script>
<template>
	<div>
		首页
		<button @click="handleLogin">点击登录</button>
	</div>
</template>
<style lang="scss" scoped></style>
